import request from '@/utils/request'

// 资金管理流程--代办 /product/samplePaymentApply/selectSamplePaymentApplyListToDo
// 我申请的-/product/samplePaymentApply/selectMyApply
// 审核-/product/samplePaymentApply/ApplyCheck
// 启动流程-/product/samplePaymentApply/startApplyFlow




// 查询我的申请记录列表
export function selectMySampleTalentApply(query) {
  return request({
    url: '/product/samplePaymentApply/selectMyApply',
    method: 'get',
    params: query
  })
}
// 查询待办列表
export function selectSampleTalentApplyToDo() {
  return request({
    url: '/product/samplePaymentApply/selectSamplePaymentApplyListToDo',
    method: 'get',
    // params: query
  })
}
// 新增申请审核
export function SampleTalentApplyCheck(data) {
  return request({
    url: '/product/samplePaymentApply/ApplyCheck',
    method: 'post',
    data: data
  })
}
// 新增启动申请记录
export function startApplyFlow(data) {
  return request({
    url: '/product/samplePaymentApply/startApplyFlow',
    method: 'post',
    data: data
  })
}
// 查询样衣申请流转记录
export function selectFlowInstanceRecordListExt(query) {
  return request({
    url: '/flow/flowrecord/selectFlowInstanceRecordListExt',
    method: 'get',
    params: query
  })
}




// 查询样衣打款申请列表
export function listSamplePaymentApply(query) {
  return request({
    url: '/product/samplePaymentApply/list',
    method: 'get',
    params: query
  })
}

// 查询样衣打款申请详细
export function getSamplePaymentApply(id) {
  return request({
    url: '/product/samplePaymentApply/' + id,
    method: 'get'
  })
}

// 新增样衣打款申请
export function addSamplePaymentApply(data) {
  return request({
    url: '/product/samplePaymentApply',
    method: 'post',
    data: data
  })
}

// 修改样衣打款申请
export function updateSamplePaymentApply(data) {
  return request({
    url: '/product/samplePaymentApply',
    method: 'put',
    data: data
  })
}

// 删除样衣打款申请
export function delSamplePaymentApply(id) {
  return request({
    url: '/product/samplePaymentApply/' + id,
    method: 'delete'
  })
}
